package com.easylinkin.linkappapi.progress.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 进度模型关联关系
 * </p>
 *
 * @author zhengwen
 * @since 2023-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("app_progress_integrate_ref")
public class ProgressIntegrateRef extends Model<ProgressIntegrateRef> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，自增
     */
    @TableId(value = "id_", type = IdType.AUTO)
    private Long id;

    /**
     * 模型id
     */
    @TableField("resource_id_")
    private String resourceId;

    /**
     * 进度任务id
     */
    @TableField("progress_id_")
    private Long progressId;

    /**
     * 进度计划id
     */
    @TableField("progress_plan_id_")
    private Long progressPlanId;

    /**
     * 创建人
     */
    @TableField("creator_")
    private String creator;

    /**
     * 创建时间
     */
    @TableField("create_time_")
    private Date createTime;

    /**
     * 修改人
     */
    @TableField("modifier_")
    private String modifier;

    /**
     * 修改时间
     */
    @TableField("modify_time_")
    private Date modifyTime;

    // /**
    //  * 是否删除，0否，1是
    //  */
    // @TableLogic(value = "0", delval = "1")
    // @TableField("deleted_")
    // private Integer deleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
